//
//  DXStarRatingView.h
//  Our Big Demo
//
//  Created by 刘臣 on 16/3/23.
//  Copyright © 2016年 WJP. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^DXStarRatingViewCallBack)(NSNumber *newRating);

@interface DXStarRatingView : UIView





/**
 * @brief set the inital star value//设置星的值
 * @param  stars number of stars to be set//星星的个数
 * @return -
 */
- (void)setStars:(int)stars;

/**
 * @brief set initial stars and a callback action简单设置初始明星和一个回调的行动
 * @param stars number of stars to be set   param恒星的恒星数集
 * @param target target to register action
 * @param action a SEL to be performed on star change event  param行动执行选取明星更改事件
 * @return -
 */
- (void)setStars:(int)stars target:(id)target callbackAction:(SEL)cllBackAction;

/**
 * @brief set initial stars and a callback block 简单设置初始明星和一个回调
 * @param stars number of stars to be set  param恒星的恒星数集
 * @param void(^)(NSNumber*) a Block to recieve callback action 参数无效(^)(NSNumber *)一块接收回调的行动
 * @return -
 */
- (void)setStars:(int)stars callbackBlock:(DXStarRatingViewCallBack)callBackBlock;



@end
